<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page
	import="ra.db.connections.CTIDInf,java.sql.ResultSet,java.sql.SQLException"
	import="front.net.entity.cookie.ICookieConstant"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String username = request.getParameter(ICookieConstant.USER_NAME);
	ResultSet rs = CTIDInf.readIdInf(username);
	rs.next();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/InfView.css" />
</head>
<div>
	<table cellpadding="0" cellspacing="0" border="0">
		<tbody>
			<tr>
				<td>
					<div class="banner-box" style="height:40px;">
						<table border="0" cellpadding="0" cellspacing="0">
							<tbody>
								<tr>
									<td>
										<div class="banner-logo"></div></td>
									<td>
										<div>查看信息</div></td>
								</tr>
							</tbody>
						</table>
						<div class="close-button"></div>
					</div>
					<div>
						<table cellpadding="0" cellspacing="0" border="0">
							<thead>
								<tr>
									<td>
										<div>
											<div id="info-view-describe">
												<div id="info-view-title-name">您的个人信息</div>
												<div>查看和修改您的个人信息</div>
											</div>
										</div></td>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>
										<div id="info-view">
											<s:form name="UserInfoForm" method="post" action="getinf"
												namespace="/ra">
												<table border="0" cellpadding="0" cellspacing="0">
													<tbody>
														<tr>
															<td>
																<div class="info-item">名字：</div></td>
															<td><input class="info-item-value"
																required="required" type="text" name="ct.cn"
																value=<%=rs.getString("cn")%> />
															</td>
														</tr>
														<tr>
															<td>
																<div class="info-item">职位：</div></td>
															<td><input class="info-item-value"
																required="required" type="text" name="ct.ou"
																value=<%=rs.getString("ou")%> />
															</td>
														</tr>
														<tr>
															<td>
																<div class="info-item">部门：</div></td>
															<td><input class="info-item-value"
																required="required" type="text" name="ct.o"
																value=<%=rs.getString("o")%> />
															</td>
														</tr>
														<tr>
															<td>
																<div class="info-item">公司：</div></td>
															<td><input class="info-item-value"
																required="required" type="text" name="ct.l"
																value=<%=rs.getString("l")%> />
															</td>
														</tr>
														<tr>
															<td>
																<div class="info-item">城市：</div></td>
															<td><input class="info-item-value"
																required="required" type="text" name="ct.st"
																value=<%=rs.getString("st")%> />
															</td>
														</tr>
														<tr>
															<td>
																<div class="info-item">国家：</div></td>
															<td><input class="info-item-value"
																required="required" type="text" name="ct.c"
																value=<%=rs.getString("c")%> />
															</td>
														</tr>
														<tr>
															<td>
																<div class="info-item">电子邮件：</div></td>
															<td><input class="info-item-value"
																required="required" type="text" name="ct.mail"
																value=<%=rs.getString("email")%> />
															</td>
														</tr>
														<tr>
															<td>
																<div class="info-item">上次登录时间：</div></td>
															<td>
																<div class="info-item-value">
																	<%=rs.getString("last_time")%>
																</div></td>
														</tr>
														<tr>
															<td></td>
															<td>
																<div>
																	<input id="submit-button" type="submit" value="提交"
																		id="submit" />
																</div></td>
														</tr>
													</tbody>
												</table>
											</s:form>
										</div></td>
								</tr>
							</tbody>
						</table>
					</div>
				</td>
			</tr>
		</tbody>
	</table>
</div>
</html>
<%rs.close(); %>